#pragma once
#ifndef MESSAGE_H
#define MESSAGE_H
#include <boost/function.hpp>
///Message.
struct Message
{
	int action;
	int id;
	int unit_type;
	CPoint begin;
	CPoint end;
	char achar;
};
struct MyMsg
{
	UINT message;
	WPARAM wParam;
	LPARAM lParam;
};
///LoginMessage.
struct LoginMessage
{
	TCHAR username[12];
	TCHAR password[18];
	TCHAR result[15];
	long ip;
};

#define CREATE_ACTION 2
#define DELETE_ACTION 3
#define CHANGE_ACTION 4
#define MOUSEMOVE_ACTION 5

typedef boost::function<bool (TCHAR*,TCHAR*)> checkfuntype;

#endif